--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 8bc7e39aeef470001b305283b34698e29e3872af
Parents : 75b17b4
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-07T19:30:06-06:00
refactor(tests): clean up telemetry integration test by removing unused imports
Changes
1 files changed, 1 insertions(+), 6 deletions(-)
Diff
diff --git a/tests/backend/test_telemetry_integration.py b/tests/backend/test_telemetry_integration.py
index a18249f5..81e7c3fe 100644
--- a/tests/backend/test_telemetry_integration.py
+++ b/tests/backend/test_telemetry_integration.py
@@ -1,7 +1,6 @@
import pytest
import time
-import json
-from unittest.mock import MagicMock, patch
+from unittest.mock import MagicMock
from meshchatx.meshchat import ReticulumMeshChat
from meshchatx.src.backend.telemetry_utils import Telemeter
@@ -109,10 +108,6 @@ async def test_telemetry_request_parsing(mock_app):
mock_app.database.contacts.get_contact_by_identity_hash.return_value = {"is_telemetry_trusted": True}
mock_app.database.messages.get_lxmf_message_by_hash.return_value = {} # To avoid JSON error
- # Also need SidebandCommands
- from meshchatx.src.backend.sideband_commands import SidebandCommands
- # (SidebandCommands is likely already imported in meshchat.py)
-
# Call it
mock_app.on_lxmf_delivery(mock_lxmf_message)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────